package com.ruoyi.gxs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gxs.mapper.GxsActivityTypeMapper;
import com.ruoyi.gxs.domain.GxsActivityType;
import com.ruoyi.gxs.service.IGxsActivityTypeService;

/**
 * 活动级别Service业务层处理
 * 
 * @author 高晓松
 * @date 2023-12-27
 */
@Service
public class GxsActivityTypeServiceImpl implements IGxsActivityTypeService 
{
    @Autowired
    private GxsActivityTypeMapper gxsActivityTypeMapper;

    /**
     * 查询活动级别
     * 
     * @param gxsActivityTypeid 活动级别主键
     * @return 活动级别
     */
    @Override
    public GxsActivityType selectGxsActivityTypeByGxsActivityTypeid(Long gxsActivityTypeid)
    {
        return gxsActivityTypeMapper.selectGxsActivityTypeByGxsActivityTypeid(gxsActivityTypeid);
    }

    /**
     * 查询活动级别列表
     * 
     * @param gxsActivityType 活动级别
     * @return 活动级别
     */
    @Override
    public List<GxsActivityType> selectGxsActivityTypeList(GxsActivityType gxsActivityType)
    {
        return gxsActivityTypeMapper.selectGxsActivityTypeList(gxsActivityType);
    }

    /**
     * 新增活动级别
     * 
     * @param gxsActivityType 活动级别
     * @return 结果
     */
    @Override
    public int insertGxsActivityType(GxsActivityType gxsActivityType)
    {
        return gxsActivityTypeMapper.insertGxsActivityType(gxsActivityType);
    }

    /**
     * 修改活动级别
     * 
     * @param gxsActivityType 活动级别
     * @return 结果
     */
    @Override
    public int updateGxsActivityType(GxsActivityType gxsActivityType)
    {
        return gxsActivityTypeMapper.updateGxsActivityType(gxsActivityType);
    }

    /**
     * 批量删除活动级别
     * 
     * @param gxsActivityTypeids 需要删除的活动级别主键
     * @return 结果
     */
    @Override
    public int deleteGxsActivityTypeByGxsActivityTypeids(Long[] gxsActivityTypeids)
    {
        return gxsActivityTypeMapper.deleteGxsActivityTypeByGxsActivityTypeids(gxsActivityTypeids);
    }



    /**
     * 删除活动级别信息
     * 
     * @param gxsActivityTypeid 活动级别主键
     * @return 结果
     */
    @Override
    public int deleteGxsActivityTypeByGxsActivityTypeid(Long gxsActivityTypeid)
    {
        return gxsActivityTypeMapper.deleteGxsActivityTypeByGxsActivityTypeid(gxsActivityTypeid);
    }
}
